package org.jma.app.ewisdom.services.utils.queries;

import java.util.Vector;

import easypastry.cast.CastContent;

/**
 * GlobalQuery class is used to send information of a global query in a multicast message(easyPaastry)
 * @author jesmari@ono.com
 * @version 1.0
 * @since 1.0
 */
public class GlobalQuery extends CastContent {
	String query;
	Vector result;
	String sender;
	
	

	public GlobalQuery(String query){
		super(query);
		this.query=query;
	}
	public GlobalQuery(String query,Vector result){
		super(query);
		this.query=query;
		this.result=result;
	}
	/**
	 * @return the query
	 */
	public String getQuery() {
		return query;
	}
	/**
	 * @param query the query to set
	 */
	public void setQuery(String query) {
		this.query = query;
	}
	/**
	 * @return the result
	 */
	public Vector getResult() {
		return result;
	}
	/**
	 * @param result the result to set
	 */
	public void setResult(Vector result) {
		this.result = result;
	}
	
	/**
	 * @return the sender
	 */
	public String getSender() {
		return sender;
	}
	/**
	 * @param sender the sender to set
	 */
	public void setSender(String sender) {
		this.sender = sender;
	}
}
